#include "../../include/dir.h"

int main() {
    path_t myPath;
    char buf[4096] = {0};

    // 初始化 path_t
    init_path(&myPath);

    char destDir[MAX_PATH_LEN] = "."; // 可以改为其他目录测试

    int ret = handle_ls(&myPath, destDir, buf, sizeof(buf));
    if(ret == 0) {
        printf("ls 输出:\n%s", buf);
    } else {
        printf("handle_ls 失败: %s\n", buf);
    }

    return 0;
}

